const { DataTypes } = require('sequelize')

const seq = require('../db/seq')

const Good = seq.define('good', {
    id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
    goodName: DataTypes.STRING,
    empId: DataTypes.INTEGER,
    empName: DataTypes.STRING,
    status: DataTypes.INTEGER,
    entryTime: DataTypes.DATEONLY,
    scrapTime: DataTypes.DATEONLY

}, {
    tableName: 'good'
})

module.exports = Good